.class public Llt/noframe/gpsfarmguide/import_fields/geoconvert/RetroUtils;
.super Ljava/lang/Object;
.source "RetroUtils.java"


# direct methods
.method public static getOauhRetrofit(Landroid/content/Context;Lretrofit2/Converter$Factory;Ljava/lang/String;)Lretrofit2/Retrofit;
    .locals 0

    .line 36
    invoke-static {p1, p2}, Llt/noframe/gpsfarmguide/import_fields/geoconvert/RetroUtils;->getRetrofit(Lretrofit2/Converter$Factory;Ljava/lang/String;)Lretrofit2/Retrofit;

    move-result-object p0

    return-object p0
.end method

.method private static getRetrofit(Lretrofit2/Converter$Factory;Ljava/lang/String;)Lretrofit2/Retrofit;
    .locals 6

    const-wide/16 v2, 0x1b58

    const-wide/16 v4, 0x1b58

    move-object v0, p0

    move-object v1, p1

    .line 47
    invoke-static/range {v0 .. v5}, Llt/noframe/gpsfarmguide/import_fields/geoconvert/RetroUtils;->getRetrofit(Lretrofit2/Converter$Factory;Ljava/lang/String;JJ)Lretrofit2/Retrofit;

    move-result-object p0

    return-object p0
.end method

.method private static getRetrofit(Lretrofit2/Converter$Factory;Ljava/lang/String;JJ)Lretrofit2/Retrofit;
    .locals 0

    .line 65
    new-instance p2, Lokhttp3/OkHttpClient$Builder;

    invoke-direct {p2}, Lokhttp3/OkHttpClient$Builder;-><init>()V

    .line 67
    sget-object p3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-virtual {p2, p4, p5, p3}, Lokhttp3/OkHttpClient$Builder;->connectTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;

    .line 68
    sget-object p3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-virtual {p2, p4, p5, p3}, Lokhttp3/OkHttpClient$Builder;->writeTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;

    .line 69
    sget-object p3, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-virtual {p2, p4, p5, p3}, Lokhttp3/OkHttpClient$Builder;->readTimeout(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;

    .line 72
    new-instance p3, Lretrofit2/Retrofit$Builder;

    invoke-direct {p3}, Lretrofit2/Retrofit$Builder;-><init>()V

    .line 73
    invoke-virtual {p3, p1}, Lretrofit2/Retrofit$Builder;->baseUrl(Ljava/lang/String;)Lretrofit2/Retrofit$Builder;

    .line 74
    invoke-virtual {p2}, Lokhttp3/OkHttpClient$Builder;->build()Lokhttp3/OkHttpClient;

    move-result-object p1

    invoke-virtual {p3, p1}, Lretrofit2/Retrofit$Builder;->client(Lokhttp3/OkHttpClient;)Lretrofit2/Retrofit$Builder;

    if-eqz p0, :cond_0

    .line 77
    invoke-virtual {p3, p0}, Lretrofit2/Retrofit$Builder;->addConverterFactory(Lretrofit2/Converter$Factory;)Lretrofit2/Retrofit$Builder;

    .line 81
    :cond_0
    invoke-virtual {p3}, Lretrofit2/Retrofit$Builder;->build()Lretrofit2/Retrofit;

    move-result-object p0

    return-object p0
.end method
